package cn.xyhelp.shop.order.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单表
 * </p>
 *
 * @author violetfreesia
 * @since 2022-02-15
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("shop_order")
public class ShopOrder extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单序列号
     */
    @TableField("serial_number")
    private Integer serialNumber;

    /**
     * 订单类型：商品订单、服务订单、报修订单
     */
    @TableField("type")
    private Integer type;

    /**
     * 支付方式
     */
    @TableField("payment_type")
    private String paymentType;

    /**
     * 总价
     */
    @TableField("total_money")
    private Long totalMoney;

    /**
     * 实际支付
     */
    @TableField("actual_money")
    private Long actualMoney;

    /**
     * 描述
     */
    @TableField("description")
    private String description;

    @TableField("user_id")
    private Integer userId;

    @TableField("store_id")
    private Integer storeId;

    /**
     * 门店名称
     */
    @TableField("store_name")
    private String storeName;

    /**
     * 是否开票
     */
    @TableField("invoice_status")
    private Integer invoiceStatus;

    /**
     * 过期时间
     */
    @TableField("expired_at")
    private String expiredAt;

    /**
     * 收件人姓名
     */
    @TableField("name")
    private String name;

    /**
     * 收件人联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 收件人地址
     */
    @TableField("address")
    private String address;


}
